<%@ taglib prefix="from" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script>
    function bedCardMes() {
        var visitNo = $("#visitNo").val();
        loadDiv('nurseIndexDiv', '${ctx}/doctor/patVisit/bedCard?visitNo=' + visitNo)
    }

</script>
<div class="app">
    <section class="layout">
        <div class="content-wrap">
            <div class="wrapper" style="bottom: 50px;">
                <ul class="nav nav-tabs">
                    <li><a href="#" onclick="loadDiv('nurseIndexDiv','${ctx}/nurse/index')">床位列表</a></li>

                    <li class="active">
                        <a href="#" >床头卡片</a>
                    </li>
                </ul>
                <section  class="main-content col-lg-12" id="LeftDiv">

                </section>
            </div>
        </div>
        <%--右侧诊疗项目列表--%>
        <section class="main-content col-lg-4" id="RightDiv">
            <div class="content-wrap" id="rigthCenterDiv">
                <div class="content-wrap">
                    <div class="wrapper" style="bottom: 50px;">
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a href="#" >床头卡片</a>
                            </li>
                        </ul>
                        <section class="panel">
                            <div class="panel-body">
                                <form method="post" class="form-horizontal">
                                    <div class="col-sm-6 row">
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">住院号：</label>

                                            <div class="col-sm-4">
                                                <input onchange="bedCardMes()" value="${patVisit.visitNo}" id="visitNo"
                                                       htmlEscape="false" class="form-control" maxlength="40"/>
                                                <label style="color: #ff0000" class="control-label">输入住院号检索</label>
                                            </div>
                                            <label class="col-sm-2 control-label"></label>

                                            <div class="col-sm-4">
                                                <input class="btn btn-primary" type="button" onclick=bedCardPrint() value="打印"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">床号：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" value="${patVisit.bedNo}" readonly class="form-control"
                                                       maxlength="40"/>
                                            </div>
                                            <label class="col-sm-2 control-label">年龄：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" value="${patVisit.patVisitIndex.age}" readonly
                                                       class="form-control" maxlength="40"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">姓名：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" readonly value="${patVisit.patVisitIndex.name}"
                                                       class="form-control" maxlength="40"/>
                                            </div>
                                            <label class="col-sm-2 control-label">性别：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" readonly
                                                       value="${fns:getDictLabel(patVisit.patVisitIndex.sex, 'SEX_DICT', '')}"
                                                       class="form-control" maxlength="40"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">护理级别：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" readonly value="${fns:getDictLabel(patVisit.nursingClass, 'NURSING_CLASS_DICT', '')}" class="form-control"
                                                       maxlength="40"/>
                                            </div>
                                            <label class="col-sm-2 control-label">诊断：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" readonly value="${patVisit.diagnosis}" class="form-control" maxlength="40"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">主治医生：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" readonly  value="${fns:getUserName(patVisit.doctorInCharge)}" class="form-control"
                                                       maxlength="40"/>
                                            </div>
                                            <label class="col-sm-2 control-label">责任护士：</label>

                                            <div class="col-sm-4">
                                                <input htmlEscape="false" readonly value="${fns:getUserName(patVisit.dutyNurse)}" class="form-control"
                                                       maxlength="40"/>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </section>
                    </div>
                </div>
            </div>
        </section>

    </section>
</div>

